import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

// services
import { AuthGuardService } from '../../core/services/auth-guard.service'

// components
import { MainComponent } from './components/main/main.component';
import { MenuManagementComponent } from './components/system/menu-management/menu-management.component';
import { SchoolManagementComponent } from './components/system/school-management/school-management.component';

const mainRoutes: Routes = [
    {
        path: 'main',
        component: MainComponent,
        // canActivate: [AuthGuardService],
        children: [
            { path: 'system/menu', component: MenuManagementComponent },
            { path: 'system/school', component: SchoolManagementComponent },
        ]
    }
];

@NgModule({
    imports: [
        RouterModule.forChild(mainRoutes)
    ],
    exports: [
        RouterModule
    ]
})

export class MainRoutingModule {}